package com.gitee.wsl.compose.ui.ratingbar

import androidx.compose.ui.graphics.Color

sealed class RatingBarStyle(open val activeColor: Color) {
    companion object {
        val Default = Stroke()
    }

    open class Fill(
        override val activeColor: Color = Color(0xFFFFCA00),
        val inActiveColor: Color = Color(0x66FFCA00),
    ) : RatingBarStyle(activeColor)

    /**
     * @param width width for each star
     * @param color A border [Color] shown on inactive star.
     */
    class Stroke(
        val width: Float = 1f,
        override val activeColor: Color = Color(0xFFFFCA00),
        val strokeColor: Color = Color(0xFF888888)
    ) : RatingBarStyle(activeColor)
}